Add trace_quad_form and trace_gen_quad_form
Include trace_quad_form.hpp and add function signatures.