Add template to build own algorithm