successfully converted binary number to array