It also contains two of my best writings upto far in cpp by the name of Points and BarnesHut which contain the cpp optimised code for N line segment intersection and N body interaction respectively.
All the code is in main.cpp in every folder with additonal text files for test cases if you want.
Feel free to drop by and comment if you find any mistakes. Also feel free to copy it for your uses.
Thanks
Vidush Jindal
IIIT Delhi