Complete Programming Assignment 2

This updates cachematrix.R to contain the required functions for
Programming Assignment 2