First attempt at implementing weighted bayesian classifier