a simple version to find frequence patterns