A more efficient loss function for Siamese