fixed typos in cachematrix.R after testing with example matrix