結果 : write an algorithm for insertion sort and analyze its time complexity