Supervised Learning And Outlier Detection For High-Dimensional Data Using Principal Components