Update cachematrix.R

Adding first version of implemented cachematrix