implement math matrix and AI matrix, unit test pass.