Efficient Spectrum Management Exploiting D2D Communication in 5G Systems