refactored engine TreeNodes from array to map