Liang-Barsku algorithm improved, setting results works.