Self Organizing Map algorithm and distortion measure