refactored TreeCapitator class to support tree height to break speed relationship