Generalization error bounds for iterative learning algorithms with bounded updates