wrote two functions for creating a special matrix and calculating its inverse with cache