added get_merkle_leaves function