added gale shapley algorithm functions