Implement stub methods, cache matrix inversion