get kdtrees ready for track-based search