Insertion sort working