implemented by jGibbLDA in java