Hiveary log clustering algorithm