Create cachematrix.R

Submission to programming assignment 2, Coursera