The stable marriage problem structure and algorithms - Gusfield, Dan; Irving, Robert W. (Foundations of computing, 1989)