copying the example

cacheSolve not working yet
Sollution

Documentary and final solution