P21: Insert an element at a given position into a list.