add initial implementation of segmented merkle tree