Collinear problem was solved: a full brute solution and a partial fast solution