replaceItem method

PathSeg replaceItem(
PathSeg newItem,
int index
)