Implemented Quadratic Discriminant Analysis.