fix bugs of Rank1OnlySBV and do refactoring of tries.