insertion sort in scala