- swap changes the array whose reference is being passed. yuk - findCollisions is not as efficient as it could be (hasDifference in particular)