Tree constructor working; match determination framework implemented