The Algebra of Data: A Foundation for the Data Economy