Update cachematrix.R

Attached is my code for assignment 3 to compute inverse of a matrix