Finite element method for Helmholtz equation