Implement filter and filterWithKey.
Merge pull request #17 from RamsesDeNorre/filter

Implement filter and filterWithKey.