This function optimises the selection used for the superposition by keeping only the atoms with an rmsf smaller than the threshold.