added RMSD test code and similarityIndex as described by Hodgkin and Richards