entropy of matrix completed
started median pattern, need lowest distance per string not total
median pattern done