結果 : algorithm to insert an element in the middle of an array