Prune dead code
Add Algorithm class