modified HC to generate neighbours by switching bits