Dynamic Resource Allocation in Wireless Heterogeneous Networks