add NN and BPNN class