Fix kNN graph generation for small datasets
Add hash label analysis