Submitted cachematrix.R for Prgramming Assignment