Changes to how the rmsd is calculated
Finished new get_mids function using the optimal superposition to an ideal stem.