First commit

got recursive tree transformation algo down, but doesn’t work yet