More tree, bit manipulation