Refactoring : organize files in some directories.
Add input, persistence, and util directories.