Finding inverse of matrix by caching

Finding the inverse of a matrix using R by caching the value of inverse.