generate piece hashes from bytestring rep of pieces