On nonlocal computation of Eigenfrequencies of beams using finite difference and finite element methods