corrected problem with return value of cacheSolve - was returning temporary value that wasn't updated properly