extend AlgorithmTemplate to take RelationalInput

closes #257