Some tree consistency check code.

To use:
1. Ensure you can dump core by typing "ulimit -c unlimited" at the shell.
2. Compile with debugging enabled (make CXXFLAGS=-g)
3. Run
4. Use "gdb btree core"