implemented TwoBitCompass