embeds and extracts two bits at a time