added insertion sort method