hungarian algorithm part 1