How to remove all occurrences of a value from a list, without sorting the list?