Optimal mean-based algorithms for trace reconstruction (Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing)