Changed tree to work for Boruvka operations, not as a BST