add CPU version of logistic forward
modify makefile for logistic forward