working on converting the eigen qp code to a small library.