modernized MarginCriterion
ClassNLLCriterion :
1. adding new optional input named weights. 
    this is array an indicating different weights to classes.
2. in updateGradInput self.gradInput is updated