- remove extend_rhs as it require reverse BWT
- minor code improvements