A simple matrix class with my little knowledge in mathematics