Added the possibility of calculating the dist table in 3D through
Monte Carlo integration.

The Monte Carlo method seems to be competitive in 3D, especially for
fast testing purposes.

It is possible to perform a fast and dirty approximation with 1e3-1e4
points or generate more points, to generate better approximation with
more time.