Stable_Matching code now works correctly