An Implementation of the Smooth Particle Mesh Ewald Method