Searching structural blocks by SS exhaustive matching