Calculate the inverse of a matrix

Finished implementing the two functions in the R file.