Update cachematrix.R

First Version, still working on it.