The Mathematics of Data Representations