initial classifier (not complete), there is also a hashtable implementation here. will be moved out