Fixed a bug in the rke.remove.pairs function. Also implemented virtual pairs code.