insertion sort skeleton