Generative Learning Algorithm: GDA and NaiveBayes