Indexing of Crystal Diffraction Patterns