Updated cachematrix.R

Completed provided code to calculate and then cache the inverse of a
matrix