Starting from the base code provided here, implement the straightforward and improved methods for counting the number of distinct collinear triplets in a set of n points in the plane.
What to turn in: email me the zip file of your code so that I can test it.