calculate inverse of a matrix

Complete writing two fucntions in the R file.