Add algorithm package