insert into values to array at specify location