The Mathematics of Marriage