Create NB.py

This module implements the Naive Bayes classification algorithm.