Implement Enumerable#grep