added quadratic model heuristic, some details dont work
Merge branch 'qm'

* qm:
  added quadratic model heuristic, some details dont work