Gale-Shapley algorithm implementation finished