Clustering Bit-patterns into Approximately Equivalent Groups