Programming Assignment 2 for R Programming

Edited cachematrix.R in accordance with Programming Project 2 for
Coursera's R Programming (rprog-003) course.