Completed Assignment2

Updated functions to reflect matrix inverse calculation