Convert the sparse_hash_ctx to the HashTreeBuilder class

Also convert the verity tree storage to std::vector. Check that the run
time doesn't increase much.

Bug: 25170618
Test: run build_verity_tree on a system image and check the root hash
Change-Id: I911c40fe9c540a35bd0397c16e09be81f28b3642
5 files changed