Insert an element to a given position