Add file cachematrix.R for assignment 2