Implement reverse on an empty tree.

Closes #23.