moved tree algos to new package