Contains implementation of merkle tree.