Actually, if anyone knows any good literature on set-based algorithms, maybe I can clean up my attempt above.