Created BER calculation in crts.cpp