Refactors the storage of classifier data to be an object rather than array. This allows for the storage of occurrence frequency and removes the need for an iterative loop in the .classify method.