Quadratic algebras General nonassociative rings and algebras mathematics