Manual implementation of `intersection`. D3 sets are too fat.