Optimised the voids algorithm to use a KDTree instead of a brute force n^2 calculation.