create cubes complex by truth table