Adding minimum tree tarversal