Cognitive Resource Management for Heterogeneous Cellular Networks