sample code for self organizing map