Solving the Biggest Marriage Problem