Example algorithm test