matrix class
matrix test