Improved efficiency

a faster version of kd-tree search. OpenMP based-parallel tracing,
improving over 10x speed.