Leaf traversal

I need to iterate over the leaves of a tree, so I added a couple of helper functions and updated the README:
1. Add isLeaf() function.
2. Add leaves() function.