Added BubbleSort function