Replace min() function with one from List::Util

List::Util is a core module since 5.7.x
Merge pull request #346 from vsespb/min_from_list_util

Replace min() function with one from List::Util