With the increasing demand on broadband wireless communications, the problem of spectrum insufficiency has become a major factor limiting the wireless system performance [1]}. Massive multiple-input multiple-output (MIMO) transmission was proposed in [2]} and has triggered considerable research interest recently due to its great gains in spectral efficiency (SE) and energy efficiency (EE) [3]}, [4]}, [5]}. Besides, device-to-device (D2D) communication has also been proven promising in enhancing the SE of the traditional cellular systems and has drawn great attention recently [6]}, [7]}, [8]}. Different from the conventional cellular communication where all traffic is routed via base station (BS), D2D communication allows two closely located users to communicate directly, and thus have distinct advantages such as high SE, short packet delay, low energy consumption and increased safety.
