Assignement no2

Develop code for matrix inversio with cache.