Packed Arrays for Tristates (and more) in C++