Fixed a bug in PDC. Abstracted out functionality of a vector classifier in preparation for P-LOVE.