Add Matrix class.

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