cachematrix.R

Now with functional code and comments.