On monomial algebras