finding max number of collinear points O(n^2logn)