Added functions to compute and cache de inverse of a matrix.