Coursera R Programming Assignment 2 my cachematrix