maximal repeat mapping optimization