Analyzed d8 --prof and type-based classes. Added memory deallocation to C++ version. Current result: 3.3s vs 1.7s (+94%)