cachematrix for RProgramming coursera