Linear algebraic representation of topology and geometry as a
complex of chain spaces
