My version of cachematrix.R for Programming Assignment 2 (Peer Review).