Implementing a siamese neural network for fingerprint matching