Implementation of Residue Coordinates