1: Algorithm for generating orthogonal matrices with rational elements 2: Using Tree Automata and Regular Expressions to Manipulate Hierarchically Structured Data