Updated algorithm_basic and created algorithm_intermediate