Insertion sort was implemented