Updated version of cachematrix.R

Completed assignment work