trws_base: minor refactoring for Nesterov
nesterov: marginals reading bug fixed