Finds function local minimum