Put in the Build Tree Method

Still has errors, just had time to quickly put it in, will work on
getting it running soon.
Merge pull request #1 from Benjisus/master

Put in the Build Tree Method