volume kd tree, consolidated into one file, include loops not resolved