my code of cache matrix