make sure the order of gradInput is correct
Merge branch 'master' of github.com:koraykv/torch-nngraph