An Implementation of Smooth Particle Mesh Ewald Method