Building an iterative heuristic solver for a quantum annealer