`get_costmat` will be moved outside LAPSolver so arguments make sense.