Minimal polynomial in algebra