add maximum matching