Development an Validation of an Algorithm for the Virtual Crack Closure Technique