Text this: An algorithm to solve optimal stopping problems for onedimensional diffusions