Added cachematrix.R with my solution