Finishing FPTree algorithm (untested)
Reorganizing algorithm objects.