A polynomially bounded algorithm for a singly constrained quadratic program