Finished implementation of cacheSolve function and its unit tests.