local minimum in array