Starting tree gen

So far it seems promising but the resize function crashes.
I think that's it

Should fix #3

That brings me to the end of this phase.