Modified cachematrix.R,Solution added