several changes

change binary name to `ss'
refactor magic_scan
switch back to use uint8_t for trie