Matrix class for simple stuff. not a big deal