Ranked pairs : Code cleanUp