commit assignment 2 to R programming course, inverse of a matrix calculating or via cache