K-D tree properly handle duplicates now.