Update max_in_list.py

Optimized sort algorithm.