add minimal example for algorithm