Adds function Filter() to extract elements that satisfy a predicate.