completed first pass at makeCacheMatrix function