Text this: Quadratic programming for two dimensional case