min element of an array