Parallel Construction and Query of Index Data Structures for Pattern Matching on Square Matrices