clean alogrithm directory