Construct Merkle Trees and verify proofs in Dart.
Ported from https://github.com/miguelmota/merkletreejs