refactor status
remove BCode
refactor

rename Data.PendingSet -> Data.PieceHisto
replace Data.Queue -> Data.Sequence