Elements of Higher-Dimensional Automata Theory