Perturbation of Spike Timing Benefits Neural Network Performance on Similarity Search