working version of a completion engine using Tries