added implementation of makeCacheMatrix and cacheSolve