optimize memory
rebase
fix pointset bug
fix kd tree range bug
fix nearest bug
is empty