Use bitset (WIP) to reduce memory usage