Adding beginnings of vectorized glm class