Bi-Encoder Contrastive Learning for Fingerprint and Iris Biometrics