BWT and DC3 algorithm