Inverts a GTS Matrix object and returns the newly allocated matrix or NULL if the matrix can't be inverted.