Implemented Insertion Sort in Java