Returns maximum amplitude of a tree