Nesterov class updated, parameters added and typedef