Matrix inversion

For coursera course:  R programming