BuildTree is an academic exercise that builds trees out of node relations.