Precision test

These modifications enables to calculate intersections in double precision.
The aim is to check the effects on the final results, so calculation efficiency is not considered.