Modified optimizer so it accepts the optimization parameters passed
by main function call in maxent.py