Added matrix inversion code for assignment 2