prefix tree data structure and demo usage