Second commit, completed cacheSolve and added comments