#22 fd algorithm implements enum parameter algorithm