Development of a GEM based detector for the CBM Muon Chamber (MUCH)