create algorithm controller