Completed cachematrix.R

This is a completed version of cachematrix.R as part of Programming
Assignment 2 for Roger Peng’s R-Programming class.