working on insertion sort