Implemented a few tree methods

Implemented:
* isEmpty()
* clear()
* contains()