update of irf function
optimization: introduced bug removed in simplex
estimation: removed a stringent condition

I had introduced a bug, whereby if the starting point was not good, the
procedure would crash when counting the number of nonlinear
restrictions. But this step is not necessary so  long as a good starting
point is not found.
yet another optimizer under test (unfinished)