HW 2

Functions to compute and cache matrix inverse