Continual Learning using a Bayesian Nonparametric Dictionary of Weight Factors