Completed coding Matrix Inverse functions for Assignment 2.