Noisy Iterative Learning Algorithms: Optimization, Generalization, And Privacy