adding prefix tree