A system for the automatic recognition of patterns