BubbleSort working with test case