Finish cacheSolve() and the TestSuite

Finish the cacheSolve(). Also add two
test function to test whether the cache
hits and be clean once it is invalidate.