binary to decimal and back done (todo: no builtins)