Array.insertSort simplification