Implements self-organizing map, which is an unsupervised neural network.