used to input data and to build
mpairs
read_mens_mates(n,pairs)