Heterogeneous spiking neural network in clustering problem