[Stable] Added code switching using variable

-Added a static code_ver variable in CudaStd to switch between serial
and parallel version of the code
-Adapted the NaiveBayesClassifier to the above change