add batch_size for gd.cpp