Create NB Algorithm