Adding collinearPoints code.