New BitUtils class and tests