Dynamic Adaptive Mesh Refinement Algorithm For Failure In Brittle Materials