Added List::replace function.