Structural Motifs Identification and Retrieval: A Geometrical Approach