Moment matrix generation simplified