Implement two methods for a tree: one to return all nodes at a given level and another to return all leaf nodes.