InsertionSort algorithm fixed and comments added