fixed Confusion:batchAdd()

Ref. https://github.com/torch/optim/commit/4e36b6c52d179a362302ec8df963c43e80bd5593#commitcomment-6509577

Fixed a bug that was signalled by https://github.com/GregoryEssertel in my previous PR.