Online 2 Dimensional Optimization