Algorithmic aspects of resource allocation in cognitive radio wireless networks