Fixed TheoryTest.java, so now I have proved that my idea will work and I
have already coded it, I just need to port it Max's API's (mostly by
adapting it to work with Atom's instead of Ints), and then test it in
Max.