Added code to create cache matrix and calculate its inverse