Updated rearrangeMethod in BubbleSort. Tests pass on two-element lists