Binary to octal in java