Fixed BubbleSort bugs