結果 : algorithm for sorting nearly sorted array