An integer to binary converter using an algorithm without arrays