fully functional andy ugly insertion sort