treesearch: normalize with arbitrary query

- run-length encoding for concordance plot
- better detection whether pickle file is out of date