Finished insersion sort