Added the list-remove-matching-pairs procedure