Added the solution and the example cachevector.R