max_element perf added
Merge pull request #337 from skozilla/master

max_element perf