ByteWeight review

this is not pascal, you can use much more expressive tools, like recursion.