Similarity Learning with neural networks