Define the code for calculating the inverse of a matrix and cache it

Code needed for R - Programming Assignment