Completed Bubble sort algorithm. Extracted private method for simplification. All tests passing.