Finding the diameter of a tree with distance queries | Synapse