insertion sort & findnth