cross validation notes in glm