ByteWeight review

this function should be rewritten from scratch.

Consider using `In_channel.fold_lines` for example. And, please, no references or other mutables, they do not buy you anything in this case