implemented algorithms for create a cache matrix and computing its inverse