An Algorithm for Solving Quadratic Programming Problems with an M-matrix | Synapse