Completed assignment 2

Filled out both functions. Tested on 2 invertible matrices with known inversions.