Generalized Methods of Moments