Use btrie in pa_pd
pa_pd now uses btrie functions