modified bernoull nb, not working now but will fix. added classifier base class