Added CMAP code from Gromacs.