Joint user grouping and beamforming for low complexity massive MIMO systems