adding a crtp kdtree implementation