High-Performance Software for Quantum Chemistry and Hierarchical Matrices