CMul should resize the gradInput into the same shape as input.
do not use pushudata on a tensor that is retrieved with checkudata.
make the dimension index int.
implement cuda versions for index operators
indexing operators work with CUDA, well they give out errors.
Merge branch 'master' of https://github.com/andresy/torch