bp.hpp : add normalization in training