Change the matrix to fixed 2 dimension.

Signed-off-by: CyberZHG <CyberZHG@gmail.com>