R Programming cache matrix assignment