implemented mackCacheMatrix() and cacheSolve() functions.