basic library for SOMs (Kohonen's self organising maps)