Create CrackDetection.java

Initial source code from regular Java threads version