using array to present matrix, blocks is 2D