changed arguments of insertionSort; it works now!!