Kuhn-Munkres (Hungarian) Algorithm OpenCV implementation