edited the function makecachMatrix