simulate function for MLE and BE done + main function that calculates how T affects the error rate done