insert  given element in to an array