Followed @schwancr's advice, and moved the RMSD to be a function instead of a method on trajectory