Caching the Inverse of a Matrix

Two functions written for the programming assignment 2 in the coursera course "R programming". These functions calculates and caches the inverse of a matrix making a very computational efficient way of getting the inverse of a matrix.