Implement specialized matrix and calculation for the inverse of a matrix for assignment 2