Yes, although the full answer will be too long for this space.
First of all, if you do not have a large number of nodes, then the linear one is likely to be beautiful, and you should not change anything if the performance does not suffer anymore.
-, , , - , quadtree. ( , ), " ". , "" ", Christer Ericson.