An introduction to nonassociative algebras