Organize files into subdirectories