Vertex Exchange Method for a Class of Quadratic Programming Problems