[algorithms][is_valid] implement the new directory/file structure
[algorithms][is_simple] implement the new directory/file structure