delete cMessages in the destructor
Fix error in computing the bit error rate