Check out my first novel, midnight's simulacra!

Gale-Shapley algorithm