fixes non-contiguous copy bug

This PR fixes #39 . Basically, to fix the bug, I modified the `THCudaTensor_computesz` function to return sizes without any of the size=1 dimensions. It includes additional unit tests.