Implementing makeCacheMatrix/cacheSolve methods for assignment 2