What was I thinking?

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update alg.c

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>