Added updateGradInput to L1Cost