To insert element into the given array in the specified location