R Assignment 2 Matrix Inversion