C++ now runs at a similar speed to others

Switched from list to array storage of the dictionary