binary tree slicing