cachematrix.R

updates to cachematrix file for assignment 2