Fixed bug in group code when Nrating = 2
Merge branch 'master' of https://github.com/smfleming/HMM