Dynamic programming/Bitmask dp