Implemented recursive insertion sort