Applications of Nested Summation Symbols to Quantum Chemistry: Formalism and Programming Techniques