debuging prefix tree