First commit. Caches a matrix's inverse so it doesn't need to be computed again