GaussNaive.java function