updated ghetto Matrix class