implemented nesterov trainer