Chordal Graphs, Semidefinite Optimization, and Sum-of-squares Matrices