Implemented binary insertion sort