partial calcTreeNode
partial calTreeNode v2
tree v3 (no fun instructions)