added substitute-weights.perl
remove misc/reuse-weights.cpp