F-Tree Algorithm