initial impl: insertion sort and selection sort