start gradient descrent by using CPP