Generates all stable pairings given a preference list.