binary to octal conversion in c