fixed a small bug in DC. added a recursive builder that uses the distance field function to discard empty space