Fast Tree Based Nearest Neighbor Search