Implemented the impunc deterministic heuristic