fix some minor bugs, insertionSort is still buggy, everything else works