corrected typo with last bracket cachematrix.r