Added a line-search gradient descent in cases where the fisher info is not posdef.