Release Tree object from memory

Fixing small memory leak where ```Tree``` object is not released from memory, but all other ```Node``` objects are.