Nonlocal Monte Carlo algorithm for self-avoiding walks with fixed endpoints