Create cachematrix.R

RPROG008-Assignment 2. First draft version of cachematrix.R