Generalized linear multistep methods for ordinary differential equations