A Generalized Finite Element Method for solving the Helmholtz equation in two dimensions with minimal pollution