Some Implementations of standard optimization algorithm