Implementation of an FP Tree alogorithm for mining frequent patterns