Eliminate template parameter on classifier base class.

This was only relevant for knn, which has to store both indexes anyway.
This change allows us to use classifiers through a pointer to the base
class (classifier) without having to further templatize that parameter.
Merge branch 'classifier' into develop