an a priori algorithm for mining frequent free trees