added perplexity approximation similar to Patterson&Teh(2013)