find max length in tree nodes