Smallest value in an array function added.