Java Implementation of Insertion Sort