predict function added for RDA and QDA