restructuring Algorithms repo