Stable Marriage Problem Algorithm