does row/col reduction to perform the hungarian algorithm