Finds the argument which maximizes the function given in the block trhu grid-search maximization.
[-1,0,1,2].argmax {|x| x**2 } #=> 2
Finds the argument which minimizes the function given in the block trhu grid-search minimization.
[-1,0,1,2].argmin {|x| x**2 } #=> 0
[Validate]