Implemented kohonen and neural gas algorithm.