utilities package; KD-Tree