update fast algorithm for collinear

need to find how to remove duplicate line