removed access to tree vector elements from algorithm class MST SPT