eaglesa Lab 7

the Pair class already defines a swap function, so you can just do
backingArray[a].swap(backingArray[b])