[new] maximum diameter in tree