Tip of the Red Giant Branch Distances. I. Optimization of a Maximum Likelihood Algorithm | Synapse