Cleaned up algorithms package