node encode test
debugging kd tree