Erlang: replace lists:min/1 and lists:max/1 with erlang:min/2

erlang:max/2 and erlang:min/2 replace most uses of lists:max/1.
These functions were added in Erlang R13B, released about five
years ago.