added kv_dictionary_heap and related tests