use a brute force algorithm in highlight.h