Solve assignment problems using the Hungarian algorithm
Implements the Hungarian algorithm (Kuhn-Munkres) to find optimal one-to-one assignment between workers and jobs, minimizing or maximizing total cost in O(n3) time complexity.