Munkres algorithm for Python
