integrate MAD (MultiAgent Decomposition) heuristic into search engine