calcTreeHeight now does not use double