Updated MakeCacheMatrix and cacheSolve function

These functions were modified to correctly implement the homework
assignment. The MakeCacheMatrix function now correctly caches a matrix
while cacheSolve either solves a matrix or retrieves a value that has
already been cached.