move BWTAlgorithm methods into fm_index class