Merge pull request #32 from nicholas-leonard/cudatensor

resize should go first
adding THCudaTensor_getTextureObject
replacing checkCudaErrors with more traditional error checking
isSameSizeAs
isSameSizeAs unit test
isSameSizeAs works