Sample programs for various algorithms