Wrotee 2 functions that together will cashe and return the inverse of a matrix.