Implementation of the minimal assignment algorithms