Provides retain_mut method that has the same functionality as retain but gives mutable borrow to the predicate.