ALGLIB added for quadratic programming