Cache matrix for R porgramming Assignment2