Structure of the 2-dimensional cube tilings