Three algorithms for searching the minimum distance in the self-organizing maps