Surjections

Memoizing surjective functions.