Replaced FastVector with ArrayList
Uses factory pattern to create a classifier