Algebras Generated by Two Quadratic Elements