first sketch of Katz-CLASSIT algorithm (starting off from https://github.com/cmaclell/concept_formation/blob/master/cobweb.py