creating search tree for cdc