profiled custom naive bayes implementation to see which line of code hiccups