Similar Items: An algoritm for solving electromagnetic field equations by finite element method