swap is to impliment coin.rb for gene pairs