output log2 matrices