improve tree generation

- enable users to verify that their node is included in the root.
- provide implementation of DB::getDataCode(int datapos)

NB: we removed a paragraph from README. the issue has been corrected/clarified and is no longer a problem (see https://iwilcox.me.uk/2014/proving-bitcoin-reserves)