wotking, TODO, fix bug and allow keep in memory octree instead of disk