REL: Version 0.3.2 dev
ENH: included a maximum number of iterations for the line-search algorithm