v.22.6Performance Improvement

Improve dictGetDescendants and dictGetChildren Functions with Temporary Hierarchical Index and BIDIRECTIONAL Support

Improve performance of dictGetDescendants, dictGetChildren functions, create temporary parent to children hierarchical index per query, not per function call during query. Allow to specify BIDIRECTIONAL for HIERARHICAL attributes, dictionary will maintain parent to children index in memory, that way functions dictGetDescendants, dictGetChildren will not create temporary index per query. Closes #32481. #37148 (Maksim Kita).