Took swap out of rotateInPlace