Subset-algo