RavenKarp algorithm and Triangles's problems solution