Implemented Bubble Sort in Java