Add AFEM algorithm