Update cachematrix.R

Function for calculating inverse of matrix