Clustering algorithms to minimize recognition error function and their applications to the vowel template learninig