Making small quadratic program solving lib from http://www.labri.fr/perso/guenneba/code/QuadProg/eiquadprog.hpp