Modified cachematrix.R and added comments.