Data source: http://rosettacode.org/wiki/Stable_marriage_problem