Modified original matrix inverse caching program.
Passes several tests (inv%*%a ~= I, agrees with output of
solve for same matrices).