added perplexityWithGaussianQ and perplexity options