Sequence pair swapping

Added the sequence pair class and implemented the swapping and cost calculation of solutions.