Use smart pointers in actionTrie related stuff.
Use make_shared, instead of new