merkle: created mtree_core.erl utility module and added new functions mtree API