2D-Pattern Indexing