finish find local minimum problem fix issue #15