using bwt.hpp