Added K-D tree