Round robin number swapping

Added the round robin part of the pairing algorithm functionality