Crazy Sequential Representation (C++)