dictionary/balanced_tree: implement reducing through sequence