Added my solution cachematrix.R