structural approach to pattern recognition