Add hierarchical variant for SDDs.