The Combinatorial Theory of Complexes