made makecachMatrix function