First working version of Number-Of-Disc-Intersections (time complexity too large and arithmetic overflow).