Partial card algorithm