Solution to the stable marriage problem.