Coursera R Course - cachematrix.R