Find the minimum of a decreasing then increasing array
chaoxuprime.com