Added array_insert method