A trivial `heuristics` implementation to improve upon.