On the Generalization Ability of On-Line Learning Algorithms