Fix bugs in segment.cpp and add statistics/metrics features. Now first working version. Fix fastpd c++0x compliance bugs. Make ROI border a variable in main.m

segment.cpp: memory leaks, statistics/metrics.

fastpd: rewrite some 'char *' as 'const char *' for c++0x correctness (const-correctness, too. That is never bad)

main.m: the ROI border is now a variable. Also, its default value is now 5 instead of 20.