a sexist algorithm
function stableMatching {
Initialize all m M and w W to free
while free man m who still has a woman w to propose to {
w = m's highest ranked such woman
if w is free
engage (m, w)
else some pair (m', w) already exists
if w prefers m to m'
(m, w) become married
m' becomes free
else
(m', w) remain married
}
}
... but anyway it just proves that beauty just makes everyone unhappy.