added a function to return merkle tree hashes