make cache matrix
Merge https://github.com/prodekan/datasciencecoursera