Basic script for getting branches from root for dependency trees.
First added tree reconstruction from branches via voting.
Added test for tree branching and reconstruction.