Completion 2 functions for matrix inversion