finished homework

cache the matrix and its inverse
sync to repository