refactor BubbleSort (passing test)