add method arrayInsert()