Added code for cachematrix.R and updated the readme file.