add match tree data structure