Classification via Bayesian Nonparametric Learning of Affine Subspaces