Optimal Stable Marriage