Solution upload

Working version of cachematrix.R for Programming Assignment 2