added bayesian classifiier code