Text this: An efficient numerical method for determining trapped modes in acoustic waveguides