Adding implementation basic and probably inefficient of the mgsp