Cache matrix inverse - R programming class assingment 2