NDE algorithm I created while at Bradley