implement query phrase
add ranker phrase to compress
avoid use recursion
occurence query phrase ok
refine code