working bubbleSort