Per-base maximal context detection implemented; bug with right sentinel positions fixed