changed casting to String[] for params in NBayesFactoryParams