implemented gaussian discriminant analysis