cachematrix.R now caches the inverse of a matrix if it exists, else it calculates it for the first time