1st version after corruption recovery
1. add cp_metric.m
2. add basic test on bcp, bocpd, rdre