Solving Inverse of a Matrix with R