Recursive Height Assignment in Binary Tree