Create mycachematrix.R

my solution to assignment 2