matrix inversion assignment

Here are the functions that needed to be written for Programming
assignment 2 of the R programming Coursera class.