QAM demodulation implemented in C++
A C++ version of Matlab's qamdemod(y, M, varargin)
Align each symbol to the nearest constellation points by minimum Euclidean distance.
The function only consider rectanglular constellation diagram and grey code.
The input is assumed to have been downconverted into baseband.