Finished AA-tree implementation, but it is completely untested and probably has bugs.