added BubbleSort implementation