Automatized Diffraction Pattern Recoognition