Insertion sort different approach