Quadratic forms and related algebraic structures