A numerical technique for the analysis of cracks subjected to normal compressive stresses