Added the methods to create cache matrix and calcuate inverse