Deleted some algorithms and optimized others.