Pattern recognition, BST