An Adaptive Mesh Refinement Technique For Dynamics Of Solids