K-means clustering implemented in a pure Win32 and GDI+ window