gen_momentsmatrix_ideal function

Generates the moment matrix, assuming no constraints