Data mining frequent pattern algorithm