Update InsertionSort.java

Updated insertionSort to given pseudocode.