Adds prefix-matching; reduces memory footprint of dawg nodes