General Quadratic Gravity