An algebra associated to a combinatorial geometry