added log liklihood functionality to naive bayes to avoid numerical underflow.