Resource Management and Optimization for Cognitive Radio Networks