Add algorithm sample