Added cacheSolve fun, tested the output with test cases, enhanced some comments