A new look at the optimal assignment problem