add pruning, bug: zero leaf node estimated error is 0