Variable structure neural network for adaptive color clustering