separati bitreader e bitwriter