Antarctic bivalves have surprised scientists who have discovered that the animals switch sex.