implemented `List.remove`