adds root? method
adds leaf? method
Merge pull request #13 from xuanxu/extra_methods

Adds node.root? and node.leaf? methods.