Basics of hashing trees seems to work

Still to come: more exhaustive tests on modifying the hashes