generic feature loop
remove feature loops in bfgs.cc
make loop norm use foreach_feature
dead code removal