max_element perf added
max_element perf added