Optimal sequence estimators for statistically unknown binary sources and channels