Stable matching problem (Stable marriage problem) Gale-Shapley algorithm Object-oriented implementation Theory