algorithm_scratch