Application of tree languages to pattern recognition.