Created a code for stable matching problem