some documetation for matrix inversion funcitons