added implementation of function makeCacheMatrix() and cacheSolve