faster computation of Ginv

Simpler faster computation of the Ginv term in decoder calculation.