I. Introduction
Cognitive radio is a promising techniques that has been proposed in order to solve the spectrum scarcity problem [1]. In a cognitive radio network, secondary users (SUs) are able to reuse the radio resources of primary users (PUs) while the resources are not being used by PUs or the interference caused to PUs from SUs does not degrade the quality of service of PUs below a predetermined threshold. In addition, device-to-device (D2D) communication which corresponds to direct data transmission between two proximity user equipments (UEs) without going through the base station (BS) has also been proposed in order to increase the overall spectral efficiency (SE) of cellular networks or to offload part of the cellular traffic under heavy load of cellular networks [2]. This communication technique that enables the network to provide service to a larger number of users has been considered in 3GPP LTE-Advanced standard.