Help finding a tree's diameter without frames