Remove duplicate heuristic algorithm