An implementation of granular dynamics for simulating frictional elastic particles based on the DL_POLY code