minor updates to NB
update NaiveBayes to support sparse data