working gray.m constellation generator for M order QAM modulation.
added map2gray function.