An O(nL) Iteration Algorithm for Computing Bounds in Quadratic Optimization Problems