makeCachMatrix function and tests