Iterates through elements and returns the value of the maximum height.
From http://stackoverflow.com/questions/6060992/element-with-the-max-height-from-a-set-of-elements