Prepared for using macros to generate lists. Optimized the octree to use internal lists instead of std list,