Updated recursive tree using proper min dimensions.
Fixed error calculation bug.