added cacheSolve function and started a unit test function