utils: scripts various changes
sgb: dist algorithm
queries: clust queries