Add tree comparison functions.

Bit silly not to implement one in terms of the other, but just for
practice.

Also simplify tree_make() (remove malformed tree check -- it's obvious
what's wrong anyway), fix a malformed tree in the tests, move
tree_depth(), and fix some formatting nits.
Add tree rotation functions.
Commit test_search_tree.c.

Omission.