Residency Match (Stable Marriage Problem, Gale-Shapley Algorithm)