A numerical technique for trailing edge acoustic scattering problems