Implement the filter() and filteri() methods along with tests.
More tests for tree depth.
Implement methods partition() and partitioni() along with tests.