Refactoring of clustering.syncnet; SyncNet implementation for CCORE C++ (without interface)