fixed MLlib Naive-Bayes java example bug

the filter tests Double objects by references whereas it should test their values
Is `pl._1().equals(pl._2())` better?