Adding implementation for makeCacheMatrix and cacheSolve functions