Resource Allocation in Collocated Massive MIMO for 5G and Beyond