Fix issue #6

It will resize tensor when the tensor's size is odd in SampleGaussian.