Update algofill.cpp

fix "Program returns random data in a function"