Insertion sort and factorial in haskell.