Optimal learning with Bernstein Online Aggregation