Implemented Selection Sort in Java