gs.gInv_MP function

Moore-Penrose inverse