Fixed index out of bounds error at first method call of swap(). Temporarily commented out the future method calls while I reorganize the algorithm.