Merkle hash tree java implementation